﻿#include "AlgorithmPage.h"
#include <qapplication.h>
#include <qstyle.h>
#include <QIcon>
#include <qdebug.h>


using namespace widgetUI;

void AlgorithmPage::activation( QObject* obj, int index, EVENTFLAG status) {
	qDebug( ) << getName();
}


AlgorithmPage::AlgorithmPage(QWidget* parent) : ATabPageBase(parent) {
	ui.setupUi(this);
	setObjectName(getName(  ));
}

AlgorithmPage::~AlgorithmPage( ) {
}

QString AlgorithmPage::getName( ) {
	static QString objName = "算法";
	return objName;
}

QIcon AlgorithmPage::getIcon( ) {
	static QIcon icon = QApplication::style( )->standardIcon( (QStyle::StandardPixmap)30 );
	return icon;
}

/*
AlgorithmPage* AlgorithmPage::getInstance( ) {
	static AlgorithmPage instance;
	return &instance;
}
*/

